package com.talos.ums.controller.admin.userloginhis.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 用户登录历史记录表 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UmsUserLoginHisRespVO {

    @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED, example = "19538")
    @ExcelProperty("")
    private Long id;

    @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED, example = "28230")
    @ExcelProperty("")
    private Long userId;

    @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("")
    private String userCode;

    @Schema(description = "登录IP地址")
    @ExcelProperty("登录IP地址")
    private String ipAddress;

    @Schema(description = "登录时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("登录时间")
    private LocalDateTime time;

    @Schema(description = "登录终端:APP,PC")
    @ExcelProperty("登录终端:APP,PC")
    private String terminal;

    @Schema(description = "是否登录成功: 0-失败,1-成功", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否登录成功: 0-失败,1-成功")
    private Integer success;

    @Schema(description = "登录失败编码")
    @ExcelProperty("登录失败编码")
    private String errorCode;

    @Schema(description = "登录失败原因")
    @ExcelProperty("登录失败原因")
    private String errorMsg;

    @Schema(description = "创建人工号")
    @ExcelProperty("创建人工号")
    private String creatorCode;

    @Schema(description = "创建人姓名", example = "张三")
    @ExcelProperty("创建人姓名")
    private String creatorName;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改人工号")
    @ExcelProperty("修改人工号")
    private String modifierCode;

    @Schema(description = "修改人姓名", example = "李四")
    @ExcelProperty("修改人姓名")
    private String modifierName;

    @Schema(description = "修改时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("修改时间")
    private LocalDateTime modifyTime;

    @Schema(description = "租户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "23607")
    @ExcelProperty("租户id")
    private Long tenantId;

    @Schema(description = "登录姓名", example = "张三")
    @ExcelProperty("登录姓名")
    private String userName;

    @Schema(description = "创建人id", example = "5192")
    @ExcelProperty("创建人id")
    private Long creatorId;

    @Schema(description = "修改人id", example = "21519")
    @ExcelProperty("修改人id")
    private Long modifierId;

}
